home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / c_count-.0 / c_count- / c_count-7.0 / configure < prev    next >
Encoding:
Text File  |  1995-05-21  |  34.8 KB  |  1,239 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Revision: 7.5 
  4. # Guess values for system-dependent variables and create Makefiles.
  5. # Generated automatically using autoconf version 2.3 
  6. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  7. #
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10.  
  11. # Defaults:
  12. ac_help=
  13. ac_default_prefix=/usr/local
  14. # Any additions from configure.in:
  15. ac_help="$ac_help
  16.   --with-warnings         use gcc warnings (used for developing this tool)"
  17.  
  18. # Initialize some variables set by options.
  19. # The variables have the same names as the options, with
  20. # dashes changed to underlines.
  21. build=NONE
  22. cache_file=./config.cache
  23. exec_prefix=NONE
  24. host=NONE
  25. no_create=
  26. nonopt=NONE
  27. no_recursion=
  28. prefix=NONE
  29. program_prefix=NONE
  30. program_suffix=NONE
  31. program_transform_name=s,x,x,
  32. silent=
  33. site=
  34. srcdir=
  35. target=NONE
  36. verbose=
  37. x_includes=NONE
  38. x_libraries=NONE
  39.  
  40. # Initialize some other variables.
  41. subdirs=
  42.  
  43. ac_prev=
  44. for ac_option
  45. do
  46.  
  47.   # If the previous option needs an argument, assign it.
  48.   if test -n "$ac_prev"; then
  49.     eval "$ac_prev=\$ac_option"
  50.     ac_prev=
  51.     continue
  52.   fi
  53.  
  54.   case "$ac_option" in
  55.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  56.   *) ac_optarg= ;;
  57.   esac
  58.  
  59.   # Accept the important Cygnus configure options, so we can diagnose typos.
  60.  
  61.   case "$ac_option" in
  62.  
  63.   -build | --build | --buil | --bui | --bu | --b)
  64.     ac_prev=build ;;
  65.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  66.     build="$ac_optarg" ;;
  67.  
  68.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  69.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  70.     ac_prev=cache_file ;;
  71.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  72.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  73.     cache_file="$ac_optarg" ;;
  74.  
  75.   -disable-* | --disable-*)
  76.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  77.     # Reject names that are not valid shell variable names.
  78.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  79.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  80.     fi
  81.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  82.     eval "enable_${ac_feature}=no" ;;
  83.  
  84.   -enable-* | --enable-*)
  85.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  86.     # Reject names that are not valid shell variable names.
  87.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  88.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  89.     fi
  90.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  91.     case "$ac_option" in
  92.       *=*) ;;
  93.       *) ac_optarg=yes ;;
  94.     esac
  95.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  96.  
  97.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  98.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  99.   | --exec | --exe | --ex)
  100.     ac_prev=exec_prefix ;;
  101.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  102.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  103.   | --exec=* | --exe=* | --ex=*)
  104.     exec_prefix="$ac_optarg" ;;
  105.  
  106.   -gas | --gas | --ga | --g)
  107.     # Obsolete; use --with-gas.
  108.     with_gas=yes ;;
  109.  
  110.   -help | --help | --hel | --he)
  111.     # Omit some internal or obsolete options to make the list less imposing.
  112.     # This message is too long to be a string in the A/UX 3.1 sh.
  113.     cat << EOF
  114. Usage: configure [options] [host]
  115. Options: [defaults in brackets after descriptions]
  116. Configuration:
  117.   --cache-file=FILE       cache test results in FILE
  118.   --help                  print this message
  119.   --no-create             do not create output files
  120.   --quiet, --silent       do not print \`checking...' messages
  121.   --version               print the version of autoconf that created configure
  122. Directory and file names:
  123.   --prefix=PREFIX         install architecture-independent files in PREFIX
  124.                           [$ac_default_prefix]
  125.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  126.                           [same as prefix]
  127.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  128.   --program-prefix=PREFIX prepend PREFIX to installed program names
  129.   --program-suffix=SUFFIX append SUFFIX to installed program names
  130.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  131. Host type:
  132.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  133.   --host=HOST             configure for HOST [guessed]
  134.   --target=TARGET         configure for TARGET [TARGET=HOST]
  135. Features and packages:
  136.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  137.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  138.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  139.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  140.   --x-includes=DIR        X include files are in DIR
  141.   --x-libraries=DIR       X library files are in DIR
  142. --enable and --with options recognized:$ac_help
  143. EOF
  144.     exit 0 ;;
  145.  
  146.   -host | --host | --hos | --ho)
  147.     ac_prev=host ;;
  148.   -host=* | --host=* | --hos=* | --ho=*)
  149.     host="$ac_optarg" ;;
  150.  
  151.   -nfp | --nfp | --nf)
  152.     # Obsolete; use --without-fp.
  153.     with_fp=no ;;
  154.  
  155.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  156.   | --no-cr | --no-c)
  157.     no_create=yes ;;
  158.  
  159.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  160.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  161.     no_recursion=yes ;;
  162.  
  163.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  164.     ac_prev=prefix ;;
  165.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  166.     prefix="$ac_optarg" ;;
  167.  
  168.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  169.   | --program-pre | --program-pr | --program-p)
  170.     ac_prev=program_prefix ;;
  171.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  172.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  173.     program_prefix="$ac_optarg" ;;
  174.  
  175.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  176.   | --program-suf | --program-su | --program-s)
  177.     ac_prev=program_suffix ;;
  178.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  179.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  180.     program_suffix="$ac_optarg" ;;
  181.  
  182.   -program-transform-name | --program-transform-name \
  183.   | --program-transform-nam | --program-transform-na \
  184.   | --program-transform-n | --program-transform- \
  185.   | --program-transform | --program-transfor \
  186.   | --program-transfo | --program-transf \
  187.   | --program-trans | --program-tran \
  188.   | --progr-tra | --program-tr | --program-t)
  189.     ac_prev=program_transform_name ;;
  190.   -program-transform-name=* | --program-transform-name=* \
  191.   | --program-transform-nam=* | --program-transform-na=* \
  192.   | --program-transform-n=* | --program-transform-=* \
  193.   | --program-transform=* | --program-transfor=* \
  194.   | --program-transfo=* | --program-transf=* \
  195.   | --program-trans=* | --program-tran=* \
  196.   | --progr-tra=* | --program-tr=* | --program-t=*)
  197.     program_transform_name="$ac_optarg" ;;
  198.  
  199.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  200.   | -silent | --silent | --silen | --sile | --sil)
  201.     silent=yes ;;
  202.  
  203.   -site | --site | --sit)
  204.     ac_prev=site ;;
  205.   -site=* | --site=* | --sit=*)
  206.     site="$ac_optarg" ;;
  207.  
  208.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  209.     ac_prev=srcdir ;;
  210.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  211.     srcdir="$ac_optarg" ;;
  212.  
  213.   -target | --target | --targe | --targ | --tar | --ta | --t)
  214.     ac_prev=target ;;
  215.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  216.     target="$ac_optarg" ;;
  217.  
  218.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  219.     verbose=yes ;;
  220.  
  221.   -version | --version | --versio | --versi | --vers)
  222.     echo "configure generated by autoconf version 2.3"
  223.     exit 0 ;;
  224.  
  225.   -with-* | --with-*)
  226.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  227.     # Reject names that are not valid shell variable names.
  228.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  229.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  230.     fi
  231.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  232.     case "$ac_option" in
  233.       *=*) ;;
  234.       *) ac_optarg=yes ;;
  235.     esac
  236.     eval "with_${ac_package}='$ac_optarg'" ;;
  237.  
  238.   -without-* | --without-*)
  239.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  240.     # Reject names that are not valid shell variable names.
  241.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  242.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  243.     fi
  244.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  245.     eval "with_${ac_package}=no" ;;
  246.  
  247.   --x)
  248.     # Obsolete; use --with-x.
  249.     with_x=yes ;;
  250.  
  251.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  252.   | --x-incl | --x-inc | --x-in | --x-i)
  253.     ac_prev=x_includes ;;
  254.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  255.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  256.     x_includes="$ac_optarg" ;;
  257.  
  258.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  259.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  260.     ac_prev=x_libraries ;;
  261.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  262.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  263.     x_libraries="$ac_optarg" ;;
  264.  
  265.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  266.     ;;
  267.  
  268.   *) 
  269.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  270.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  271.     fi
  272.     if test "x$nonopt" != xNONE; then
  273.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  274.     fi
  275.     nonopt="$ac_option"
  276.     ;;
  277.  
  278.   esac
  279. done
  280.  
  281. if test -n "$ac_prev"; then
  282.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  283. fi
  284.  
  285. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  286.  
  287. # File descriptor usage:
  288. # 0 standard input
  289. # 1 file creation
  290. # 2 errors and warnings
  291. # 3 some systems may open it to /dev/tty
  292. # 4 used on the Kubota Titan
  293. # 6 checking for... messages and results
  294. # 5 compiler messages saved in config.log
  295. if test "$silent" = yes; then
  296.   exec 6>/dev/null
  297. else
  298.   exec 6>&1
  299. fi
  300. exec 5>./config.log
  301.  
  302. echo "\
  303. This file contains any messages produced by compilers while
  304. running configure, to aid debugging if configure makes a mistake.
  305. " 1>&5
  306.  
  307. # Strip out --no-create and --no-recursion so they do not pile up.
  308. # Also quote any args containing shell metacharacters.
  309. ac_configure_args=
  310. for ac_arg
  311. do
  312.   case "$ac_arg" in
  313.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  314.   | --no-cr | --no-c) ;;
  315.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  316.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  317.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  318.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  319.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  320.   esac
  321. done
  322.  
  323. # NLS nuisances.
  324. # Only set LANG and LC_ALL to C if already set.
  325. # These must not be set unconditionally because not all systems understand
  326. # e.g. LANG=C (notably SCO).
  327. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  328. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  329.  
  330. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  331. rm -rf conftest* confdefs.h
  332. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  333. echo > confdefs.h
  334.  
  335. # A filename unique to this package, relative to the directory that
  336. # configure is in, which we can look for to find out if srcdir is correct.
  337. ac_unique_file=c_count.c
  338.  
  339. # Find the source files, if location was not specified.
  340. if test -z "$srcdir"; then
  341.   ac_srcdir_defaulted=yes
  342.   # Try the directory containing this script, then its parent.
  343.   ac_prog=$0
  344.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  345.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  346.   srcdir=$ac_confdir
  347.   if test ! -r $srcdir/$ac_unique_file; then
  348.     srcdir=..
  349.   fi
  350. else
  351.   ac_srcdir_defaulted=no
  352. fi
  353. if test ! -r $srcdir/$ac_unique_file; then
  354.   if test "$ac_srcdir_defaulted" = yes; then
  355.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  356.   else
  357.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  358.   fi
  359. fi
  360. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  361.  
  362. # Prefer explicitly selected file to automatically selected ones.
  363. if test -z "$CONFIG_SITE"; then
  364.   if test "x$prefix" != xNONE; then
  365.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  366.   else
  367.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  368.   fi
  369. fi
  370. for ac_site_file in $CONFIG_SITE; do
  371.   if test -r "$ac_site_file"; then
  372.     echo "loading site script $ac_site_file"
  373.     . "$ac_site_file"
  374.   fi
  375. done
  376.  
  377. if test -r "$cache_file"; then
  378.   echo "loading cache $cache_file"
  379.   . $cache_file
  380. else
  381.   echo "creating cache $cache_file"
  382.   > $cache_file
  383. fi
  384.  
  385. ac_ext=c
  386. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  387. ac_cpp='$CPP $CPPFLAGS'
  388. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  389. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  390.  
  391. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  392.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  393.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  394.     ac_n= ac_c='
  395. ' ac_t='    '
  396.   else
  397.     ac_n=-n ac_c= ac_t=
  398.   fi
  399. else
  400.   ac_n= ac_c='\c' ac_t=
  401. fi
  402.  
  403.  
  404. # Extract the first word of "gcc", so it can be a program name with args.
  405. set dummy gcc; ac_word=$2
  406. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  407. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  408.   echo $ac_n "(cached) $ac_c" 1>&6
  409. else
  410.   if test -n "$CC"; then
  411.   ac_cv_prog_CC="$CC" # Let the user override the test.
  412. else
  413.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  414.   for ac_dir in $PATH; do
  415.     test -z "$ac_dir" && ac_dir=.
  416.     if test -f $ac_dir/$ac_word; then
  417.       ac_cv_prog_CC="gcc"
  418.       break
  419.     fi
  420.   done
  421.   IFS="$ac_save_ifs"
  422.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  423. fi
  424. fi
  425. CC="$ac_cv_prog_CC"
  426. if test -n "$CC"; then
  427.   echo "$ac_t""$CC" 1>&6
  428. else
  429.   echo "$ac_t""no" 1>&6
  430. fi
  431.  
  432.  
  433. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  434. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  435.   echo $ac_n "(cached) $ac_c" 1>&6
  436. else
  437.   cat > conftest.c <<EOF
  438. #ifdef __GNUC__
  439.   yes;
  440. #endif
  441. EOF
  442. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  443.   ac_cv_prog_gcc=yes
  444. else
  445.   ac_cv_prog_gcc=no
  446. fi
  447. fi
  448. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  449. if test $ac_cv_prog_gcc = yes; then
  450.   GCC=yes
  451.   if test "${CFLAGS+set}" != set; then
  452.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  453. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  454.   echo $ac_n "(cached) $ac_c" 1>&6
  455. else
  456.   echo 'void f(){}' > conftest.c
  457. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  458.   ac_cv_prog_gcc_g=yes
  459. else
  460.   ac_cv_prog_gcc_g=no
  461. fi
  462. rm -f conftest*
  463.  
  464. fi
  465.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  466.     if test $ac_cv_prog_gcc_g = yes; then
  467.       CFLAGS="-g -O"
  468.     else
  469.       CFLAGS="-O"
  470.     fi
  471.   fi
  472. else
  473.   GCC=
  474.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  475. fi
  476.  
  477. ac_aux_dir=
  478. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  479.   if test -f $ac_dir/install-sh; then
  480.     ac_aux_dir=$ac_dir
  481.     ac_install_sh="$ac_aux_dir/install-sh -c"
  482.     break
  483.   elif test -f $ac_dir/install.sh; then
  484.     ac_aux_dir=$ac_dir
  485.     ac_install_sh="$ac_aux_dir/install.sh -c"
  486.     break
  487.   fi
  488. done
  489. if test -z "$ac_aux_dir"; then
  490.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  491. fi
  492. ac_config_guess=$ac_aux_dir/config.guess
  493. ac_config_sub=$ac_aux_dir/config.sub
  494. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  495.  
  496. # Find a good install program.  We prefer a C program (faster),
  497. # so one script is as good as another.  But avoid the broken or
  498. # incompatible versions:
  499. # SysV /etc/install, /usr/sbin/install
  500. # SunOS /usr/etc/install
  501. # IRIX /sbin/install
  502. # AIX /bin/install
  503. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  504. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  505. # ./install, which can be erroneously created by make from ./install.sh.
  506. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  507. if test -z "$INSTALL"; then
  508. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  509.   echo $ac_n "(cached) $ac_c" 1>&6
  510. else
  511.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  512.   for ac_dir in $PATH; do
  513.     # Account for people who put trailing slashes in PATH elements.
  514.     case "$ac_dir/" in
  515.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  516.     *)
  517.       # OSF1 and SCO ODT 3.0 have their own names for install.
  518.       for ac_prog in ginstall installbsd scoinst install; do
  519.         if test -f $ac_dir/$ac_prog; then
  520.       if test $ac_prog = install &&
  521.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  522.         # AIX install.  It has an incompatible calling convention.
  523.         # OSF/1 installbsd also uses dspmsg, but is usable.
  524.         :
  525.       else
  526.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  527.         break 2
  528.       fi
  529.     fi
  530.       done
  531.       ;;
  532.     esac
  533.   done
  534.   IFS="$ac_save_ifs"
  535.   # As a last resort, use the slow shell script.
  536.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  537. fi
  538.   INSTALL="$ac_cv_path_install"
  539. fi
  540. echo "$ac_t""$INSTALL" 1>&6
  541.  
  542. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  543. # It thinks the first close brace ends the variable substitution.
  544. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  545.  
  546. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  547.  
  548. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  549. # On Suns, sometimes $CPP names a directory.
  550. if test -n "$CPP" && test -d "$CPP"; then
  551.   CPP=
  552. fi
  553. if test -z "$CPP"; then
  554. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  555.   echo $ac_n "(cached) $ac_c" 1>&6
  556. else
  557.     # This must be in double quotes, not single quotes, because CPP may get
  558.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  559.   CPP="${CC-cc} -E"
  560.   # On the NeXT, cc -E runs the code through the compiler's parser,
  561.   # not just through cpp.
  562.   cat > conftest.$ac_ext <<EOF
  563. #line 564 "configure"
  564. #include "confdefs.h"
  565. #include <assert.h>
  566. Syntax Error
  567. EOF
  568. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  569. ac_err=`grep -v '^ *+' conftest.out`
  570. if test -z "$ac_err"; then
  571.   :
  572. else
  573.   echo "$ac_err" >&5
  574.   rm -rf conftest*
  575.   CPP="${CC-cc} -E -traditional-cpp"
  576.   cat > conftest.$ac_ext <<EOF
  577. #line 578 "configure"
  578. #include "confdefs.h"
  579. #include <assert.h>
  580. Syntax Error
  581. EOF
  582. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  583. ac_err=`grep -v '^ *+' conftest.out`
  584. if test -z "$ac_err"; then
  585.   :
  586. else
  587.   echo "$ac_err" >&5
  588.   rm -rf conftest*
  589.   CPP=/lib/cpp
  590. fi
  591. rm -f conftest*
  592. fi
  593. rm -f conftest*
  594.   ac_cv_prog_CPP="$CPP"
  595. fi
  596. fi
  597. CPP="$ac_cv_prog_CPP"
  598. echo "$ac_t""$CPP" 1>&6
  599.  
  600. if test $ac_cv_prog_gcc = yes; then
  601.   echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  602. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  603.   echo $ac_n "(cached) $ac_c" 1>&6
  604. else
  605.     ac_pattern="Autoconf.*'x'"
  606.   cat > conftest.$ac_ext <<EOF
  607. #line 608 "configure"
  608. #include "confdefs.h"
  609. #include <sgtty.h>
  610. Autoconf TIOCGETP
  611. EOF
  612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  613.   egrep "$ac_pattern" >/dev/null 2>&1; then
  614.   rm -rf conftest*
  615.   ac_cv_prog_gcc_traditional=yes
  616. else
  617.   rm -rf conftest*
  618.   ac_cv_prog_gcc_traditional=no
  619. fi
  620. rm -f conftest*
  621.  
  622.  
  623.   if test $ac_cv_prog_gcc_traditional = no; then
  624.     cat > conftest.$ac_ext <<EOF
  625. #line 626 "configure"
  626. #include "confdefs.h"
  627. #include <termio.h>
  628. Autoconf TCGETA
  629. EOF
  630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  631.   egrep "$ac_pattern" >/dev/null 2>&1; then
  632.   rm -rf conftest*
  633.   ac_cv_prog_gcc_traditional=yes
  634. fi
  635. rm -f conftest*
  636.  
  637.   fi
  638. fi
  639.   echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  640.   if test $ac_cv_prog_gcc_traditional = yes; then
  641.     CC="$CC -traditional"
  642.   fi
  643. fi
  644.  
  645. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  646. set dummy ${MAKE-make}; ac_make=$2
  647. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  648.   echo $ac_n "(cached) $ac_c" 1>&6
  649. else
  650.   cat > conftestmake <<\EOF
  651. all:
  652.     @echo 'ac_maketemp="${MAKE}"'
  653. EOF
  654. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  655. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  656. if test -n "$ac_maketemp"; then
  657.   eval ac_cv_prog_make_${ac_make}_set=yes
  658. else
  659.   eval ac_cv_prog_make_${ac_make}_set=no
  660. fi
  661. rm -f conftestmake
  662. fi
  663. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  664.   echo "$ac_t""yes" 1>&6
  665.   SET_MAKE=
  666. else
  667.   echo "$ac_t""no" 1>&6
  668.   SET_MAKE="MAKE=${MAKE-make}"
  669. fi
  670.  
  671.  
  672. ###    use option -with-warnings to turn on all gcc warnings
  673. if test -n "$GCC"
  674. then
  675. # Check whether --with-warnings or --without-warnings was given.
  676. withval="$with_warnings"
  677. if test -n "$withval"; then
  678.   CFLAGS="$CFLAGS -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes"
  679. fi
  680.  
  681. fi
  682.  
  683.  
  684.  
  685.  
  686. echo $ac_n "checking for working const""... $ac_c" 1>&6
  687. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  688.   echo $ac_n "(cached) $ac_c" 1>&6
  689. else
  690.   cat > conftest.$ac_ext <<EOF
  691. #line 692 "configure"
  692. #include "confdefs.h"
  693.  
  694. int main() { return 0; }
  695. int t() {
  696.  
  697. /* Ultrix mips cc rejects this.  */
  698. typedef int charset[2]; const charset x;
  699. /* SunOS 4.1.1 cc rejects this.  */
  700. char const *const *ccp;
  701. char **p;
  702. /* NEC SVR4.0.2 mips cc rejects this.  */
  703. struct point {int x, y;};
  704. static struct point const zero;
  705. /* AIX XL C 1.02.0.0 rejects this.
  706.    It does not let you subtract one const X* pointer from another in an arm
  707.    of an if-expression whose if-part is not a constant expression */
  708. const char *g = "string";
  709. ccp = &g + (g ? g-g : 0);
  710. /* HPUX 7.0 cc rejects these. */
  711. ++ccp;
  712. p = (char**) ccp;
  713. ccp = (char const *const *) p;
  714. { /* SCO 3.2v4 cc rejects this.  */
  715.   char *t;
  716.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  717.  
  718.   *t++ = 0;
  719. }
  720. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  721.   int x[] = {25, 17};
  722.   const int *foo = &x[0];
  723.   ++foo;
  724. }
  725. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  726.   typedef const int *iptr;
  727.   iptr p = 0;
  728.   ++p;
  729. }
  730. { /* AIX XL C 1.02.0.0 rejects this saying
  731.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  732.   struct s { int j; const int *ap[3]; };
  733.   struct s *b; b->j = 5;
  734. }
  735. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  736.   const int foo = 10;
  737. }
  738.  
  739. ; return 0; }
  740. EOF
  741. if eval $ac_compile; then
  742.   rm -rf conftest*
  743.   ac_cv_c_const=yes
  744. else
  745.   rm -rf conftest*
  746.   ac_cv_c_const=no
  747. fi
  748. rm -f conftest*
  749.  
  750. fi
  751. echo "$ac_t""$ac_cv_c_const" 1>&6
  752. if test $ac_cv_c_const = no; then
  753.   cat >> confdefs.h <<\EOF
  754. #define const 
  755. EOF
  756.  
  757. fi
  758.  
  759. # If we cannot run a trivial program, we must be cross compiling.
  760. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  761. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  762.   echo $ac_n "(cached) $ac_c" 1>&6
  763. else
  764.   if test "$cross_compiling" = yes; then
  765.   ac_cv_c_cross=yes
  766. else
  767. cat > conftest.$ac_ext <<EOF
  768. #line 769 "configure"
  769. #include "confdefs.h"
  770. main(){return(0);}
  771. EOF
  772. eval $ac_link
  773. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  774.   ac_cv_c_cross=no
  775. else
  776.   ac_cv_c_cross=yes
  777. fi
  778. fi
  779. rm -fr conftest*
  780. fi
  781. cross_compiling=$ac_cv_c_cross
  782. echo "$ac_t""$ac_cv_c_cross" 1>&6
  783.  
  784. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  785. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  786.   echo $ac_n "(cached) $ac_c" 1>&6
  787. else
  788.   cat > conftest.$ac_ext <<EOF
  789. #line 790 "configure"
  790. #include "confdefs.h"
  791. #include <stdlib.h>
  792. #include <stdarg.h>
  793. #include <string.h>
  794. #include <float.h>
  795. EOF
  796. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  797. ac_err=`grep -v '^ *+' conftest.out`
  798. if test -z "$ac_err"; then
  799.   rm -rf conftest*
  800.   ac_cv_header_stdc=yes
  801. else
  802.   echo "$ac_err" >&5
  803.   rm -rf conftest*
  804.   ac_cv_header_stdc=no
  805. fi
  806. rm -f conftest*
  807.  
  808. if test $ac_cv_header_stdc = yes; then
  809.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  810. cat > conftest.$ac_ext <<EOF
  811. #line 812 "configure"
  812. #include "confdefs.h"
  813. #include <string.h>
  814. EOF
  815. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  816.   egrep "memchr" >/dev/null 2>&1; then
  817.   :
  818. else
  819.   rm -rf conftest*
  820.   ac_cv_header_stdc=no
  821. fi
  822. rm -f conftest*
  823.  
  824. fi
  825.  
  826. if test $ac_cv_header_stdc = yes; then
  827.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  828. cat > conftest.$ac_ext <<EOF
  829. #line 830 "configure"
  830. #include "confdefs.h"
  831. #include <stdlib.h>
  832. EOF
  833. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  834.   egrep "free" >/dev/null 2>&1; then
  835.   :
  836. else
  837.   rm -rf conftest*
  838.   ac_cv_header_stdc=no
  839. fi
  840. rm -f conftest*
  841.  
  842. fi
  843.  
  844. if test $ac_cv_header_stdc = yes; then
  845.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  846. if test "$cross_compiling" = yes; then
  847.   ac_cv_header_stdc=no
  848. else
  849. cat > conftest.$ac_ext <<EOF
  850. #line 851 "configure"
  851. #include "confdefs.h"
  852. #include <ctype.h>
  853. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  854. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  855. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  856. int main () { int i; for (i = 0; i < 256; i++)
  857. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  858. exit (0); }
  859.  
  860. EOF
  861. eval $ac_link
  862. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  863.   :
  864. else
  865.   ac_cv_header_stdc=no
  866. fi
  867. fi
  868. rm -fr conftest*
  869. fi
  870. fi
  871. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  872. if test $ac_cv_header_stdc = yes; then
  873.   cat >> confdefs.h <<\EOF
  874. #define STDC_HEADERS 1
  875. EOF
  876.  
  877. fi
  878.  
  879. for ac_hdr in stdlib.h getopt.h string.h malloc.h
  880. do
  881. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  882. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  883. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  884.   echo $ac_n "(cached) $ac_c" 1>&6
  885. else
  886.   cat > conftest.$ac_ext <<EOF
  887. #line 888 "configure"
  888. #include "confdefs.h"
  889. #include <$ac_hdr>
  890. EOF
  891. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  892. ac_err=`grep -v '^ *+' conftest.out`
  893. if test -z "$ac_err"; then
  894.   rm -rf conftest*
  895.   eval "ac_cv_header_$ac_safe=yes"
  896. else
  897.   echo "$ac_err" >&5
  898.   rm -rf conftest*
  899.   eval "ac_cv_header_$ac_safe=no"
  900. fi
  901. rm -f conftest*
  902. fi
  903. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  904.   echo "$ac_t""yes" 1>&6
  905.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  906.   cat >> confdefs.h <<EOF
  907. #define $ac_tr_hdr 1
  908. EOF
  909.  
  910. else
  911.   echo "$ac_t""no" 1>&6
  912. fi
  913. done
  914.  
  915. for ac_func in strchr getopt
  916. do
  917. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  918. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  919.   echo $ac_n "(cached) $ac_c" 1>&6
  920. else
  921.   cat > conftest.$ac_ext <<EOF
  922. #line 923 "configure"
  923. #include "confdefs.h"
  924. /* System header to define __stub macros and hopefully few prototypes,
  925.     which can conflict with char $ac_func(); below.  */
  926. #include <assert.h>
  927. /* Override any gcc2 internal prototype to avoid an error.  */
  928. char $ac_func(); 
  929.  
  930. int main() { return 0; }
  931. int t() {
  932.  
  933. /* The GNU C library defines this for functions which it implements
  934.     to always fail with ENOSYS.  Some functions are actually named
  935.     something starting with __ and the normal name is an alias.  */
  936. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  937. choke me
  938. #else
  939. $ac_func();
  940. #endif
  941.  
  942. ; return 0; }
  943. EOF
  944. if eval $ac_link; then
  945.   rm -rf conftest*
  946.   eval "ac_cv_func_$ac_func=yes"
  947. else
  948.   rm -rf conftest*
  949.   eval "ac_cv_func_$ac_func=no"
  950. fi
  951. rm -f conftest*
  952.  
  953. fi
  954. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  955.   echo "$ac_t""yes" 1>&6
  956.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  957.   cat >> confdefs.h <<EOF
  958. #define $ac_tr_func 1
  959. EOF
  960.  
  961. else
  962.   echo "$ac_t""no" 1>&6
  963. fi
  964. done
  965.  
  966.  
  967. ###
  968. echo $ac_n "checking if compiler supports prototypes""... $ac_c" 1>&6
  969. if eval "test \"`echo '$''{'td_cv_ansi_protos'+set}'`\" = set"; then
  970.   echo $ac_n "(cached) $ac_c" 1>&6
  971. else
  972.   
  973.     cat > conftest.$ac_ext <<EOF
  974. #line 975 "configure"
  975. #include "confdefs.h"
  976.  
  977. int main() { return 0; }
  978. int t() {
  979. extern foo(char a,int b); foo(1,2)
  980. ; return 0; }
  981. EOF
  982. if eval $ac_compile; then
  983.   rm -rf conftest*
  984.   td_cv_ansi_protos=yes
  985. else
  986.   rm -rf conftest*
  987.   td_cv_ansi_protos=no
  988. fi
  989. rm -f conftest*
  990.  
  991. fi
  992.  
  993. echo "$ac_t""$td_cv_ansi_protos" 1>&6
  994. test $td_cv_ansi_protos = yes && cat >> confdefs.h <<\EOF
  995. #define ANSI_PROTOS 1
  996. EOF
  997.  
  998.  
  999. ###
  1000. echo $ac_n "checking if getopt is declared""... $ac_c" 1>&6
  1001. if eval "test \"`echo '$''{'td_cv_decl_getopt'+set}'`\" = set"; then
  1002.   echo $ac_n "(cached) $ac_c" 1>&6
  1003. else
  1004.   
  1005.     cat > conftest.$ac_ext <<EOF
  1006. #line 1007 "configure"
  1007. #include "confdefs.h"
  1008.  
  1009. #include "system.h"
  1010. #if HAVE_STDLIB_H
  1011. #include <stdlib.h>
  1012. #endif
  1013. #if HAVE_GETOPT_H
  1014. #include <getopt.h>
  1015. #endif
  1016.  
  1017. int main() { return 0; }
  1018. int t() {
  1019. extern    void getopt();
  1020. ; return 0; }
  1021. EOF
  1022. if eval $ac_compile; then
  1023.   rm -rf conftest*
  1024.   td_cv_decl_getopt=no
  1025. else
  1026.   rm -rf conftest*
  1027.   td_cv_decl_getopt=yes
  1028. fi
  1029. rm -f conftest*
  1030.  
  1031. fi
  1032.  
  1033. echo "$ac_t""$td_cv_decl_getopt" 1>&6
  1034. test $td_cv_decl_getopt = yes && cat >> confdefs.h <<\EOF
  1035. #define DECLARED_GETOPT 1
  1036. EOF
  1037.  
  1038.  
  1039. ###    output makefile and config.h
  1040. trap '' 1 2 15
  1041. cat > confcache <<\EOF
  1042. # This file is a shell script that caches the results of configure
  1043. # tests run on this system so they can be shared between configure
  1044. # scripts and configure runs.  It is not useful on other systems.
  1045. # If it contains results you don't want to keep, you may remove or edit it.
  1046. #
  1047. # By default, configure uses ./config.cache as the cache file,
  1048. # creating it if it does not exist already.  You can give configure
  1049. # the --cache-file=FILE option to use a different cache file; that is
  1050. # what configure does when it calls configure scripts in
  1051. # subdirectories, so they share the cache.
  1052. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1053. # config.status only pays attention to the cache file if you give it the
  1054. # --recheck option to rerun configure.
  1055. #
  1056. EOF
  1057. # Ultrix sh set writes to stderr and can't be redirected directly,
  1058. # and sets the high bit in the cache file unless we assign to the vars.
  1059. (set) 2>&1 |
  1060.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1061.   >> confcache
  1062. if cmp -s $cache_file confcache; then
  1063.   :
  1064. else
  1065.   if test -w $cache_file; then
  1066.     echo "updating cache $cache_file"
  1067.     cat confcache > $cache_file
  1068.   else
  1069.     echo "not updating unwritable cache $cache_file"
  1070.   fi
  1071. fi
  1072. rm -f confcache
  1073.  
  1074. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1075.  
  1076. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1077. # Let make expand exec_prefix.
  1078. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1079.  
  1080. # Any assignment to VPATH causes Sun make to only execute
  1081. # the first set of double-colon rules, so remove it if not needed.
  1082. # If there is a colon in the path, we need to keep it.
  1083. if test "x$srcdir" = x.; then
  1084.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1085. fi
  1086.  
  1087. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1088.  
  1089. # Transform confdefs.h into DEFS.
  1090. # Protect against shell expansion while executing Makefile rules.
  1091. # Protect against Makefile macro expansion.
  1092. cat > conftest.defs <<\EOF
  1093. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1094. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1095. s%\[%\\&%g
  1096. s%\]%\\&%g
  1097. s%\$%$$%g
  1098. EOF
  1099. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1100. rm -f conftest.defs
  1101.  
  1102.  
  1103. # Without the "./", some shells look in PATH for config.status.
  1104. : ${CONFIG_STATUS=./config.status}
  1105.  
  1106. echo creating $CONFIG_STATUS
  1107. rm -f $CONFIG_STATUS
  1108. cat > $CONFIG_STATUS <<EOF
  1109. #! /bin/sh
  1110. # Generated automatically by configure.
  1111. # Run this file to recreate the current configuration.
  1112. # This directory was configured as follows,
  1113. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1114. #
  1115. # $0 $ac_configure_args
  1116. #
  1117. # Compiler output produced by configure, useful for debugging
  1118. # configure, is in ./config.log if it exists.
  1119.  
  1120. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1121. for ac_option
  1122. do
  1123.   case "\$ac_option" in
  1124.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1125.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1126.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1127.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1128.     echo "$CONFIG_STATUS generated by autoconf version 2.3"
  1129.     exit 0 ;;
  1130.   -help | --help | --hel | --he | --h)
  1131.     echo "\$ac_cs_usage"; exit 0 ;;
  1132.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1133.   esac
  1134. done
  1135.  
  1136. ac_given_srcdir=$srcdir
  1137. ac_given_INSTALL="$INSTALL"
  1138.  
  1139. trap 'rm -fr `echo "makefile config_h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1140.  
  1141. # Protect against being on the right side of a sed subst in config.status. 
  1142. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1143.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1144. $ac_vpsub
  1145. $extrasub
  1146. s%@CFLAGS@%$CFLAGS%g
  1147. s%@CPPFLAGS@%$CPPFLAGS%g
  1148. s%@CXXFLAGS@%$CXXFLAGS%g
  1149. s%@DEFS@%$DEFS%g
  1150. s%@LDFLAGS@%$LDFLAGS%g
  1151. s%@LIBS@%$LIBS%g
  1152. s%@exec_prefix@%$exec_prefix%g
  1153. s%@prefix@%$prefix%g
  1154. s%@program_transform_name@%$program_transform_name%g
  1155. s%@CC@%$CC%g
  1156. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1157. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1158. s%@CPP@%$CPP%g
  1159. s%@SET_MAKE@%$SET_MAKE%g
  1160.  
  1161. CEOF
  1162. EOF
  1163. cat >> $CONFIG_STATUS <<EOF
  1164.  
  1165. CONFIG_FILES=\${CONFIG_FILES-"makefile config_h"}
  1166. EOF
  1167. cat >> $CONFIG_STATUS <<\EOF
  1168. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1169.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1170.   case "$ac_file" in
  1171.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1172.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1173.   *) ac_file_in="${ac_file}.in" ;;
  1174.   esac
  1175.  
  1176.   # Adjust relative srcdir, etc. for subdirectories.
  1177.  
  1178.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1179.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1180.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1181.     # The file is in a subdirectory.
  1182.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1183.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1184.     # A "../" for each directory in $ac_dir_suffix.
  1185.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1186.   else
  1187.     ac_dir_suffix= ac_dots=
  1188.   fi
  1189.  
  1190.   case "$ac_given_srcdir" in
  1191.   .)  srcdir=.
  1192.       if test -z "$ac_dots"; then top_srcdir=.
  1193.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1194.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1195.   *) # Relative path.
  1196.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1197.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1198.   esac
  1199.  
  1200.   case "$ac_given_INSTALL" in
  1201.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1202.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1203.   esac
  1204.   echo creating "$ac_file"
  1205.   rm -f "$ac_file"
  1206.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1207.   case "$ac_file" in
  1208.   *Makefile*) ac_comsub="1i\\
  1209. # $configure_input" ;;
  1210.   *) ac_comsub= ;;
  1211.   esac
  1212.   sed -e "$ac_comsub
  1213. s%@configure_input@%$configure_input%g
  1214. s%@srcdir@%$srcdir%g
  1215. s%@top_srcdir@%$top_srcdir%g
  1216. s%@INSTALL@%$INSTALL%g
  1217. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1218. fi; done
  1219. rm -f conftest.subs
  1220.  
  1221.  
  1222.  
  1223. echo creating config.h
  1224. sed    -e '/^# /d' \
  1225.     -e 's/ -D/\
  1226. #define /g' \
  1227.     -e 's/\(#define [A-Za-z_][A-Za-z0-9_]*\)=/\1    /g' \
  1228.     config_h >config.h
  1229.  
  1230. echo removing config_h
  1231. rm config_h
  1232.  
  1233. exit 0
  1234. EOF
  1235. chmod +x $CONFIG_STATUS
  1236. rm -fr confdefs* $ac_clean_files
  1237. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1238.  
  1239.